<template>
  <view class="mui-grids" :class="{ 'mui-border-top': unlined }">
    <slot></slot>
  </view>
</template>

<script>
export default {
  name: 'MuiGrid',
  props: {
    // 是否去掉上线条
    unlined: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped>
.mui-grids {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mui-grids::after {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  border-top: 1px solid #eaeef1;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
}

.mui-border-top::after {
  border-top: 0 !important;
}
</style>
